package com.miaocat19.service;

import com.miaocat19.error.BusinessException;
import com.miaocat19.service.model.UserModel;

/**
 * @program: Javamiaosha
 * @description:
 * @author: miaocat19
 * @create: 2021-12-08 17:24
 **/
public interface UserService {

    /*通过id获取用户*/
    UserModel getUserById(Integer id);

    /*通过缓存获取用户的id   */
    UserModel getUserByIdInCache(Integer id);


    /*注册*/
    void register(UserModel userModel) throws BusinessException;

    /*校验登录方法*/
    UserModel validateLogin(String telphone, String encodeByMd5) throws BusinessException;
}
